
using Android.App;
using Android.Content;
using Android.OS;
using Android.Widget;

namespace MuseumsBC.Activities
{
    [Activity(Label = "Museums BC", MainLauncher = true, Icon = "@drawable/icon")]
    public class IndexActivity : Activity
    {
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Create your application here
            SetContentView(Resource.Layout.Index);
            var btnNearMe = FindViewById<Button>(Resource.Index.NearMe);
            btnNearMe.Click += (sender, e) =>
            {
                var i = new Intent(this, typeof(NearMeActivity));
                i.PutExtra("FirstData", "data from firstActivity");
                StartActivity(i);
            };

            var btnIndexListMuseums = FindViewById<Button>(Resource.Index.ListMuseums);
            btnIndexListMuseums.Click += (sender, e) =>
            {
                var i = new Intent(this, typeof(ListMuseumsActivity));
                i.PutExtra("FirstData", "data from firstActivity");
                StartActivity(i);
            };
        }
    }
}